
<?php
/*PDO测试类
 * */
include "pdoClass/PdoClass.php";
$pdo = new Ycf\Lession\Sql\Pdo\PdoClass();
$pdo->construct("mysql:host=192.168.17.129;dbname=test_db", "root", "123456");
$selectSql =  "select * from student";
var_dump($pdo->fetchAll($selectSql));//查询学生表全部